<?php

namespace Houdunwang\WeChat\Types\Traits;

trait Event
{
    public function isEventSubscribed(): boolean
    {
        return $this->MsgType == 'event' && $this->Event == 'subscribe';
    }

    public function isEventUnSubscribed(): boolean
    {
        return $this->MsgType == 'event' && $this->Event == 'unsubscribe';
    }
}
